package com.zsrd.lessons.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.IService;
import com.zsrd.lessons.domain.TsLessons;
import com.zsrd.lessons.domain.dto.TsLessonsAddDto;
import com.zsrd.lessons.domain.dto.TsLessonsListDto;
import com.zsrd.lessons.domain.dto.TsLessonsUpdateDto;

import java.util.Map;

/**
 * <p>
 * 课程表 服务类
 * </p>
 *
 * @author Chen Wei
 * @since 2022-07-11
 */
public interface TsLessonsService extends IService<TsLessons> {
    /**
     * 增加阅读次数
     *
     * @param id
     */
    void updateViews(Long id);

    IPage<TsLessonsListDto> getLessonList(String keyword, String orgNo, Long current, Long size);

    void addLesson(TsLessonsAddDto tsLessons);

    void updateLesson(TsLessonsUpdateDto tsLessons);

    Map<String, Object> getLessonById(String loginId, Long id);

    void deleteLesson(Long id);

}
